package eerbaar.shared.internal.tree.commands;

import java.util.List;

import eerbaar.shared.tree.INode;

public class AddCmd {

    public final INode start;

    public AddCmd(INode start) {
        this.start = start;
    }

    public void execute(INode node) {
        this.start.add(node);
    }

    public void execute(List<INode> list) {
        for (INode node : list) {
            execute(node);
        }
    }

}
